from django.urls import path
from BloodSpiderAPI.apis.order import request

urlpatterns = [
    # 订单相关API
    path('create/', request.create_order, name='create_order'),
    path('delete/', request.delete_order, name='delete_order'),
    path('get/', request.get_order, name='get_order'),
    path('list/', request.get_order_list, name='get_order_list'),



    # 子订单相关API
    path('sub/create/', request.create_sub_order, name='create_sub_order'),
    path('sub/delete/', request.delete_sub_order, name='delete_sub_order'),
    path('sub/update/', request.update_sub_order, name='update_sub_order'),
    path('sub/get/', request.get_sub_order, name='get_sub_order'),
    path('sub/get_related_order/', request.get_order_by_sub_order_no, name='get_order_by_sub_order_no'),
]